package cn.edu.seig;

import jakarta.annotation.Resource;
import org.springframework.stereotype.Controller;
import java.util.List;

@Controller("userController")
public class UserController {

    @Resource(name = "userDao")
    private UserDao userDao;

    public List<User> findAllUser() {
        List<User> users = userDao.findAllUser();
        for (User u : users) {
            System.out.println(u.toString());
        }
        return users;
    }
}
